import request from '@/utils/request'

// 查询租户级复合组件列表
export function listTenantComponent(query) {
  return request({
    url: '/business/tenantComponent/list',
    method: 'get',
    params: query
  })
}

// 查询租户级复合组件详细
export function getTenantComponent(id) {
  return request({
    url: '/business/tenantComponent/' + id,
    method: 'get'
  })
}

// 新增租户级复合组件
export function addTenantComponent(data) {
  return request({
    url: '/business/tenantComponent',
    method: 'post',
    data: data
  })
}

// 修改租户级复合组件
export function updateTenantComponent(data) {
  return request({
    url: '/business/tenantComponent',
    method: 'put',
    data: data
  })
}

// 删除租户级复合组件
export function delTenantComponent(id) {
  return request({
    url: '/business/tenantComponent/' + id,
    method: 'delete'
  })
}
